package com.craney.util
{
	import flash.display.DisplayObject;
	
	public class PrintXY
	{
		public function PrintXY()
		{
		}
		
		public static function print(display:DisplayObject, ...rest):void
		{
			trace("\n==================================");
			if(rest.length>0)
			{
				trace("name = " + rest[0]);				
			}
			else
			{
				trace("name = " + display.name);
			}
			trace("x = " + display.x);
			trace("y = " + display.y);
			trace("width = " + display.width);
			trace("height = " + display.height);
			trace("scaleX = " + display.scaleX);
			trace("scaleY = " + display.scaleY);
			trace("scrollRect = " + display.scrollRect);
			trace("scale9Grid = " + display.scale9Grid);
			trace("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
		}
		
	}
}